import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import createStoreConfig from './createStore';
import App from './views/App';

import './assets/css/index.css';
import './assets/css/iconfont.css';

const Root = ()=> <Provider store={createStoreConfig(window.initState || {})}><App /></Provider>;

ReactDOM.render(<Root />, document.getElementById('root'));
// registerServiceWorker();
